//
//  MyStarView.m
//  Study
//
//  Created by iking on 2017/11/3.
//  Copyright © 2017年 iking. All rights reserved.
//

#import "MyStarView.h"

@implementation MyStarView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.star1 = [UIButton buttonWithType:(UIButtonTypeCustom)];
        [_star1 setImage:UIImageNamed(@"wuxingjin") forState:(UIControlStateNormal)];
        _star1.frame = CGRectMake(5, 0, 25, 35);
        [self addSubview:_star1];
        
        self.star2 = [UIButton buttonWithType:(UIButtonTypeCustom)];
        [_star2 setImage:UIImageNamed(@"wuxingjin") forState:(UIControlStateNormal)];
        _star2.frame = CGRectMake(30, 0, 25, 35);
        [self addSubview:_star2];
        
        self.star3 = [UIButton buttonWithType:(UIButtonTypeCustom)];
        [_star3 setImage:UIImageNamed(@"wuxingjin") forState:(UIControlStateNormal)];
        _star3.frame = CGRectMake(55, 0, 25, 35);
        [self addSubview:_star3];
        
        self.star4 = [UIButton buttonWithType:(UIButtonTypeCustom)];
        [_star4 setImage:UIImageNamed(@"wuxingjin") forState:(UIControlStateNormal)];
        _star4.frame = CGRectMake(80, 0, 25, 35);
        [self addSubview:_star4];
        
        self.star5 = [UIButton buttonWithType:(UIButtonTypeCustom)];
        [_star5 setImage:UIImageNamed(@"wuxingjin") forState:(UIControlStateNormal)];
        _star5.frame = CGRectMake(105, 0, 25, 35);
        [self addSubview:_star5];
        
        
    }
    return self;
}

@end
